home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Software Dispatch
/
Apple Software Dispatch.iso
/
Software Dispatch Files
/
Oregon Trail
/
Sample Application
/
Sample Application.rsrc
/
CDEF_8_Page.txt
< prev
next >
Wrap
Text File
|
1993-06-23
|
26KB
|
489 lines
start:
00000000 4E56 FFC6 link A6, -0x003A
00000004 48E7 0F18 movem.l -[A7], D4,D5,D6,D7,A3,A4
00000008 4207 clr.b D7
0000000A 7C00 moveq.l D6, 0x00
0000000C 486E FFDE pea.l [A6 - 0x22]
00000010 A898 syscall GetPenState
00000012 A89E syscall PenNormal
00000014 2F2E 000E move.l -[A7], [A6 + 0xE]
00000018 4EBA 0464 jsr [PC + 0x464 /* 0000047E */]
0000001C 206E 000E movea.l A0, [A6 + 0xE]
00000020 2650 movea.l A3, [A0]
00000022 302B 000C move.w D0, [A3 + 0xC]
00000026 48C0 ext.l D0
00000028 322B 0008 move.w D1, [A3 + 0x8]
0000002C 48C1 ext.l D1
0000002E 2800 move.l D4, D0
00000030 9881 sub.l D4, D1
00000032 41EE FFF4 lea.l A0, [A6 - 0xC]
00000036 224B movea.l A1, A3
00000038 5089 addq.l A1, 8
0000003A 20D9 move.l [A0]+, [A1]+
0000003C 20D9 move.l [A0]+, [A1]+
0000003E 302E FFFA move.w D0, [A6 - 0x6]
00000042 48C0 ext.l D0
00000044 322E FFF6 move.w D1, [A6 - 0xA]
00000048 48C1 ext.l D1
0000004A 9081 sub.l D0, D1
0000004C D16E FFFA add.w [A6 - 0x6], D0
00000050 302E 000C move.w D0, [A6 + 0xC]
00000054 6716 beq +0x18 /* 0000006C */
00000056 5340 subq.w D0, 1
00000058 6700 023A beq +0x23C /* 00000294 */
0000005C 5340 subq.w D0, 1
0000005E 6700 02B8 beq +0x2BA /* 00000318 */
00000062 5140 subq.w D0, 8
00000064 6700 02CC beq +0x2CE /* 00000332 */
00000068 6000 02D2 bra +0x2D4 /* 0000033C */
label0000006C:
0000006C 4A2B 0010 tst.b [A3 + 0x10]
00000070 6700 02CA beq +0x2CC /* 0000033C */
00000074 387C 028E movea.w A4, 0x28E
00000078 7000 moveq.l D0, 0x00
0000007A 3014 move.w D0, [A4]
0000007C 0C80 0000 3FFF cmpi.l D0, 0x3FFF
00000082 622A bhi +0x2C /* 000000AE */
00000084 7E01 moveq.l D7, 0x01
00000086 486E FFD8 pea.l [A6 - 0x28]
0000008A AA19 syscall GetForeColor
0000008C 486E FFD2 pea.l [A6 - 0x2E]
00000090 AA1A syscall GetBackColor
00000092 558F subq.l A7, 2
00000094 2F2E 000E move.l -[A7], [A6 + 0xE]
00000098 486E FFC6 pea.l [A6 - 0x3A]
0000009C AA44 syscall GetAuxiliaryControlRecord/GetAuxCtl
0000009E 2F2E FFC6 move.l -[A7], [A6 - 0x3A]
000000A2 4EBA 03DA jsr [PC + 0x3DA /* 0000047E */]
000000A6 206E FFC6 movea.l A0, [A6 - 0x3A]
000000AA 2850 movea.l A4, [A0]
000000AC 548F addq.l A7, 2
label000000AE:
000000AE 4A07 tst.b D7
000000B0 6710 beq +0x12 /* 000000C2 */
000000B2 7001 moveq.l D0, 0x01
000000B4 2F00 move.l -[A7], D0
000000B6 2F0C move.l -[A7], A4
000000B8 4EBA 02B0 jsr [PC + 0x2B0 /* 0000036A */]
000000BC 508F addq.l A7, 8
000000BE 2F00 move.l -[A7], D0
000000C0 AA15 syscall RGBBackColor
label000000C2:
000000C2 486B 0008 pea.l [A3 + 0x8]
000000C6 A8A3 syscall EraseRect
000000C8 4A07 tst.b D7
000000CA 6710 beq +0x12 /* 000000DC */
000000CC 7000 moveq.l D0, 0x00
000000CE 2F00 move.l -[A7], D0
000000D0 2F0C move.l -[A7], A4
000000D2 4EBA 0296 jsr [PC + 0x296 /* 0000036A */]
000000D6 508F addq.l A7, 8
000000D8 2F00 move.l -[A7], D0
000000DA AA14 syscall RGBForeColor
label000000DC:
000000DC 486B 0008 pea.l [A3 + 0x8]
000000E0 A8A1 syscall FrameRect
000000E2 302B 000E move.w D0, [A3 + 0xE]
000000E6 48C0 ext.l D0
000000E8 5380 subq.l D0, 1
000000EA 3F00 move.w -[A7], D0
000000EC 302B 000C move.w D0, [A3 + 0xC]
000000F0 48C0 ext.l D0
000000F2 5380 subq.l D0, 1
000000F4 3F00 move.w -[A7], D0
000000F6 A893 syscall MoveTo
000000F8 302B 000A move.w D0, [A3 + 0xA]
000000FC 48C0 ext.l D0
000000FE 5280 addq.l D0, 1
00000100 3F00 move.w -[A7], D0
00000102 302B 0008 move.w D0, [A3 + 0x8]
00000106 48C0 ext.l D0
00000108 5280 addq.l D0, 1
0000010A 3F00 move.w -[A7], D0
0000010C A891 syscall LineTo
0000010E 7000 moveq.l D0, 0x00
00000110 102B 0011 move.b D0, [A3 + 0x11]
00000114 7201 moveq.l D1, 0x01
00000116 B280 cmp.l D1, D0
00000118 670E beq +0x10 /* 00000128 */
0000011A 7000 moveq.l D0, 0x00
0000011C 102B 0011 move.b D0, [A3 + 0x11]
00000120 7202 moveq.l D1, 0x02
00000122 B280 cmp.l D1, D0
00000124 6600 00FA bne +0xFC /* 00000220 */
label00000128:
00000128 598F subq.l A7, 4
0000012A A8D8 syscall NewRgn
0000012C 2D5F FFF0 move.l [A6 - 0x10], [A7]+
00000130 A8DA syscall OpenRgn
00000132 7000 moveq.l D0, 0x00
00000134 102B 0011 move.b D0, [A3 + 0x11]
00000138 7201 moveq.l D1, 0x01
0000013A B280 cmp.l D1, D0
0000013C 665A bne +0x5C /* 00000198 */
0000013E 302B 000A move.w D0, [A3 + 0xA]
00000142 48C0 ext.l D0
00000144 5280 addq.l D0, 1
00000146 3F00 move.w -[A7], D0
00000148 302B 0008 move.w D0, [A3 + 0x8]
0000014C 48C0 ext.l D0
0000014E 5480 addq.l D0, 2
00000150 3F00 move.w -[A7], D0
00000152 A893 syscall MoveTo
00000154 302B 000A move.w D0, [A3 + 0xA]
00000158 48C0 ext.l D0
0000015A 5280 addq.l D0, 1
0000015C 3F00 move.w -[A7], D0
0000015E 302B 000C move.w D0, [A3 + 0xC]
00000162 48C0 ext.l D0
00000164 5380 subq.l D0, 1
00000166 3F00 move.w -[A7], D0
00000168 A891 syscall LineTo
0000016A 302B 000E move.w D0, [A3 + 0xE]
0000016E 48C0 ext.l D0
00000170 5380 subq.l D0, 1
00000172 3F00 move.w -[A7], D0
00000174 302B 000C move.w D0, [A3 + 0xC]
00000178 48C0 ext.l D0
0000017A 5380 subq.l D0, 1
0000017C 3F00 move.w -[A7], D0
0000017E A891 syscall LineTo
00000180 302B 000A move.w D0, [A3 + 0xA]
00000184 48C0 ext.l D0
00000186 5280 addq.l D0, 1
00000188 3F00 move.w -[A7], D0
0000018A 302B 0008 move.w D0, [A3 + 0x8]
0000018E 48C0 ext.l D0
00000190 5480 addq.l D0, 2
00000192 3F00 move.w -[A7], D0
00000194 A891 syscall LineTo
00000196 6058 bra +0x5A /* 000001F0 */
label00000198:
00000198 302B 000A move.w D0, [A3 + 0xA]
0000019C 48C0 ext.l D0
0000019E 5280 addq.l D0, 1
000001A0 3F00 move.w -[A7], D0
000001A2 302B 0008 move.w D0, [A3 + 0x8]
000001A6 48C0 ext.l D0
000001A8 5280 addq.l D0, 1
000001AA 3F00 move.w -[A7], D0
000001AC A893 syscall MoveTo
000001AE 302B 000E move.w D0, [A3 + 0xE]
000001B2 48C0 ext.l D0
000001B4 5380 subq.l D0, 1
000001B6 3F00 move.w -[A7], D0
000001B8 302B 0008 move.w D0, [A3 + 0x8]
000001BC 48C0 ext.l D0
000001BE 5280 addq.l D0, 1
000001C0 3F00 move.w -[A7], D0
000001C2 A891 syscall LineTo
000001C4 302B 000E move.w D0, [A3 + 0xE]
000001C8 48C0 ext.l D0
000001CA 5380 subq.l D0, 1
000001CC 3F00 move.w -[A7], D0
000001CE 302B 000C move.w D0, [A3 + 0xC]
000001D2 48C0 ext.l D0
000001D4 5580 subq.l D0, 2
000001D6 3F00 move.w -[A7], D0
000001D8 A891 syscall LineTo
000001DA 302B 000A move.w D0, [A3 + 0xA]
000001DE 48C0 ext.l D0
000001E0 5280 addq.l D0, 1
000001E2 3F00 move.w -[A7], D0
000001E4 302B 0008 move.w D0, [A3 + 0x8]
000001E8 48C0 ext.l D0
000001EA 5280 addq.l D0, 1
000001EC 3F00 move.w -[A7], D0
000001EE A891 syscall LineTo
label000001F0:
000001F0 2F2E FFF0 move.l -[A7], [A6 - 0x10]
000001F4 A8DB syscall CloseRgn
000001F6 4A07 tst.b D7
000001F8 6718 beq +0x1A /* 00000212 */
000001FA 7002 moveq.l D0, 0x02
000001FC 2F00 move.l -[A7], D0
000001FE 2F0C move.l -[A7], A4
00000200 4EBA 0168 jsr [PC + 0x168 /* 0000036A */]
00000204 508F addq.l A7, 8
00000206 2F00 move.l -[A7], D0
00000208 AA14 syscall RGBForeColor
0000020A 2F2E FFF0 move.l -[A7], [A6 - 0x10]
0000020E A8D3 syscall PaintRgn
00000210 6006 bra +0x8 /* 00000218 */
label00000212:
00000212 2F2E FFF0 move.l -[A7], [A6 - 0x10]
00000216 A8D5 syscall InverRgn/InvertRgn
label00000218:
00000218 2F2E FFF0 move.l -[A7], [A6 - 0x10]
0000021C A8D9 syscall DisposRgn/DisposeRgn
0000021E 6056 bra +0x58 /* 00000276 */
label00000220:
00000220 7000 moveq.l D0, 0x00
00000222 102B 0011 move.b D0, [A3 + 0x11]
00000226 0C80 0000 00FF cmpi.l D0, 0xFF
0000022C 6648 bne +0x4A /* 00000276 */
0000022E 4A07 tst.b D7
00000230 6720 beq +0x22 /* 00000252 */
00000232 7002 moveq.l D0, 0x02
00000234 2F00 move.l -[A7], D0
00000236 2F0C move.l -[A7], A4
00000238 4EBA 0130 jsr [PC + 0x130 /* 0000036A */]
0000023C 508F addq.l A7, 8
0000023E 2F00 move.l -[A7], D0
00000240 AA14 syscall RGBForeColor
00000242 7001 moveq.l D0, 0x01
00000244 2F00 move.l -[A7], D0
00000246 2F0C move.l -[A7], A4
00000248 4EBA 0120 jsr [PC + 0x120 /* 0000036A */]
0000024C 508F addq.l A7, 8
0000024E 2F00 move.l -[A7], D0
00000250 AA15 syscall RGBBackColor
label00000252:
00000252 2D7C AA55 AA55 FFCA move.l [A6 - 0x36], 0xAA55AA55
0000025A 2D7C AA55 AA55 FFCE move.l [A6 - 0x32], 0xAA55AA55
00000262 486E FFCA pea.l [A6 - 0x36]
00000266 A89D syscall PenPat
00000268 700B moveq.l D0, 0x0B
0000026A 3F00 move.w -[A7], D0
0000026C A89C syscall PenMode
0000026E 486B 0008 pea.l [A3 + 0x8]
00000272 A8A2 syscall PaintRect
00000274 A89E syscall PenNormal
label00000276:
00000276 4A07 tst.b D7
00000278 6700 00C2 beq +0xC4 /* 0000033C */
0000027C 2F2E FFC6 move.l -[A7], [A6 - 0x3A]
00000280 4EBA 0206 jsr [PC + 0x206 /* 00000488 */]
00000284 486E FFD8 pea.l [A6 - 0x28]
00000288 AA14 syscall RGBForeColor
0000028A 486E FFD2 pea.l [A6 - 0x2E]
0000028E AA15 syscall RGBBackColor
00000290 6000 00AA bra +0xAC /* 0000033C */
label00000294:
00000294 2D6E 0008 FFFC move.l [A6 - 0x4], [A6 + 0x8]
0000029A 7000 moveq.l D0, 0x00
0000029C 102B 0011 move.b D0, [A3 + 0x11]
000002A0 0C80 0000 00FF cmpi.l D0, 0xFF
000002A6 6700 0094 beq +0x96 /* 0000033C */
000002AA 558F subq.l A7, 2
000002AC 2F2E FFFC move.l -[A7], [A6 - 0x4]
000002B0 486B 0008 pea.l [A3 + 0x8]
000002B4 A8AD syscall PtInRect
000002B6 4A1F tst.b [A7]+
000002B8 6700 0082 beq +0x84 /* 0000033C */
000002BC 302B 000E move.w D0, [A3 + 0xE]
000002C0 48C0 ext.l D0
000002C2 322B 000A move.w D1, [A3 + 0xA]
000002C6 48C1 ext.l D1
000002C8 2800 move.l D4, D0
000002CA 9881 sub.l D4, D1
000002CC 302B 000C move.w D0, [A3 + 0xC]
000002D0 48C0 ext.l D0
000002D2 322B 0008 move.w D1, [A3 + 0x8]
000002D6 48C1 ext.l D1
000002D8 2A00 move.l D5, D0
000002DA 9A81 sub.l D5, D1
000002DC 302E FFFE move.w D0, [A6 - 0x2]
000002E0 48C0 ext.l D0
000002E2 322B 000A move.w D1, [A3 + 0xA]
000002E6 48C1 ext.l D1
000002E8 9081 sub.l D0, D1
000002EA 322B 000C move.w D1, [A3 + 0xC]
000002EE 48C1 ext.l D1
000002F0 D280 add.l D1, D0
000002F2 302E FFFC move.w D0, [A6 - 0x4]
000002F6 48C0 ext.l D0
000002F8 9280 sub.l D1, D0
000002FA 48C4 ext.l D4
000002FC 48C5 ext.l D5
000002FE 2004 move.l D0, D4
00000300 D085 add.l D0, D5
00000302 2F01 move.l -[A7], D1
00000304 7202 moveq.l D1, 0x02
00000306 4EBA 00D0 jsr [PC + 0xD0 /* 000003D8 */]
0000030A 221F move.l D1, [A7]+
0000030C B081 cmp.l D0, D1
0000030E 6F04 ble +0x6 /* 00000314 */
00000310 7C01 moveq.l D6, 0x01
00000312 6028 bra +0x2A /* 0000033C */
label00000314:
00000314 7C02 moveq.l D6, 0x02
00000316 6024 bra +0x26 /* 0000033C */
label00000318:
00000318 203C 8000 0000 move.l D0, 0x80000000
0000031E C0AE 0008 and.l D0, [A6 + 0x8]
00000322 0C80 8000 0000 cmpi.l D0, 0x80000000
00000328 6608 bne +0xA /* 00000332 */
0000032A 02AE 7FFF FFFF 0008 andi.l [A6 + 0x8], 0x7FFFFFFF
label00000332:
00000332 2F2E 0008 move.l -[A7], [A6 + 0x8]
00000336 486B 0008 pea.l [A3 + 0x8]
0000033A A8DF syscall RectRgn
label0000033C:
0000033C 2F2E 000E move.l -[A7], [A6 + 0xE]
00000340 4EBA 0146 jsr [PC + 0x146 /* 00000488 */]
00000344 486E FFDE pea.l [A6 - 0x22]
00000348 A899 syscall SetPenState
0000034A 2D46 0014 move.l [A6 + 0x14], D6
0000034E 4CEE 18F0 FFAE movem.l D4,D5,D6,D7,A3,A4, [A6 - 0x52]
00000354 4E5E unlink A6
00000356 205F movea.l A0, [A7]+
00000358 DEFC 000C add.w A7, 0xC
0000035C 4ED0 jmp [A0]
0000035E 8850 or.w D4, [A0]
00000360 4147 chk.w D0, D7
00000362 4543 chk.w D2, D3
00000364 4445 neg.w D5
00000366 4600 not.b D0
00000368 0000 4E56 ori.b D0, 0x56 /* 'V' */
// begin alternate branch 0000036A-00000372
fn0000036A:
0000036A 4E56 0000 link A6, 0
0000036E 48E7 0318 movem.l -[A7], D6,D7,A3,A4
// end alternate branch 0000036A-00000372
fn0000036A: // (misaligned)
0000036C 0000 48E7 ori.b D0, 0xE7
00000370 0318 btst [A0]+, D1
00000372 3C2E 000E move.w D6, [A6 + 0xE]
00000376 206E 0008 movea.l A0, [A6 + 0x8]
0000037A 2068 0008 movea.l A0, [A0 + 0x8]
0000037E 2850 movea.l A4, [A0]
00000380 302C 0006 move.w D0, [A4 + 0x6]
00000384 48C0 ext.l D0
00000386 2E00 move.l D7, D0
00000388 5287 addq.l D7, 1
0000038A 48C7 ext.l D7
0000038C 2007 move.l D0, D7
0000038E E780 asl D0, 3
00000390 47F4 0808 lea.l A3, [A4 + D0 + 0x8]
00000394 6016 bra +0x18 /* 000003AC */
label00000396:
00000396 D6FC FFF8 add.w A3, 0xFFF8
0000039A 48C6 ext.l D6
0000039C 3013 move.w D0, [A3]
0000039E 48C0 ext.l D0
000003A0 BC80 cmp.l D6, D0
000003A2 6608 bne +0xA /* 000003AC */
000003A4 204B movea.l A0, A3
000003A6 5488 addq.l A0, 2
000003A8 2008 move.l D0, A0
000003AA 600E bra +0x10 /* 000003BA */
label000003AC:
000003AC 3007 move.w D0, D7
000003AE 5347 subq.w D7, 1
000003B0 4A40 tst.w D0
000003B2 66E2 bne -0x1C /* 00000396 */
000003B4 41EC 000A lea.l A0, [A4 + 0xA]
000003B8 2008 move.l D0, A0
label000003BA:
000003BA 4CEE 18C0 FFF0 movem.l D6,D7,A3,A4, [A6 - 0x10]
000003C0 4E5E unlink A6
000003C2 4E75 rts
000003C4 8847 or.w D4, D7
000003C6 6574 bcs +0x76 /* 0000043C */
000003C8 436F 6C6F chk.w D1, [A7 + 0x6C6F]
000003CC 7200 moveq.l D1, 0x00
000003CE 0000 222F ori.b D0, 0x2F /* '/' */
000003D2 0004 202F ori.b D4, 0x2F /* '/' */
000003D6 0008 4EBA ori.b A0, 0xBA
// begin alternate branch 000003D8-000003DE
fn000003D8:
000003D8 4EBA 000E jsr [PC + 0xE /* 000003E8 */]
000003DC 2001 move.l D0, D1
// end alternate branch 000003D8-000003DE
fn000003D8: // (misaligned)
000003DA 000E 2001 ori.b A6, 0x1
000003DE 4E75 rts
000003E0 222F 0004 move.l D1, [A7 + 0x4]
000003E4 202F 0008 move.l D0, [A7 + 0x8]
fn000003E8:
000003E8 48E7 0600 movem.l -[A7], D5,D6
000003EC 2A00 move.l D5, D0
000003EE 6A02 bpl +0x4 /* 000003F2 */
000003F0 4480 neg.l D0
label000003F2:
000003F2 2C01 move.l D6, D1
000003F4 6A02 bpl +0x4 /* 000003F8 */
000003F6 4481 neg.l D1
label000003F8:
000003F8 4EBA 001C jsr [PC + 0x1C /* 00000416 */]
000003FC 4A85 tst.l D5
000003FE 6A02 bpl +0x4 /* 00000402 */
00000400 4480 neg.l D0
label00000402:
00000402 BB86 xor.l D6, D5
00000404 6A02 bpl +0x4 /* 00000408 */
00000406 4481 neg.l D1
label00000408:
00000408 4CDF 0060 movem.l D5,D6, [A7]+
0000040C 4E75 rts
0000040E 222F 0004 move.l D1, [A7 + 0x4]
00000412 202F 0008 move.l D0, [A7 + 0x8]
fn00000416:
00000416 48E7 3800 movem.l -[A7], D2,D3,D4
0000041A 2401 move.l D2, D1
0000041C 4842 swap.w D2
0000041E 4A42 tst.w D2
00000420 661C bne +0x1E /* 0000043E */
00000422 3600 move.w D3, D0
00000424 4240 clr.w D0
00000426 4840 swap.w D0
00000428 6704 beq +0x6 /* 0000042E */
0000042A 80C1 divu.w D0, D1
0000042C 3400 move.w D2, D0
label0000042E:
0000042E 4842 swap.w D2
00000430 3003 move.w D0, D3
00000432 80C1 divu.w D0, D1
00000434 3400 move.w D2, D0
00000436 2202 move.l D1, D2
00000438 4240 clr.w D0
0000043A 4840 swap.w D0
label0000043C:
0000043C 6022 bra +0x24 /* 00000460 */
label0000043E:
0000043E 2400 move.l D2, D0
00000440 4240 clr.w D0
00000442 4840 swap.w D0
00000444 4842 swap.w D2
00000446 4242 clr.w D2
00000448 2601 move.l D3, D1
0000044A 7200 moveq.l D1, 0x00
0000044C 780F moveq.l D4, 0x0F
label0000044E:
0000044E D482 add.l D2, D2
00000450 D180 addx.l D0, D0
00000452 D281 add.l D1, D1
00000454 B083 cmp.l D0, D3
00000456 6504 bcs +0x6 /* 0000045C */
00000458 9083 sub.l D0, D3
0000045A 5201 addq.b D1, 1
label0000045C:
0000045C 51CC FFF0 dbf D4, -0x12 /* 0000044E */
label00000460:
00000460 4CDF 001C movem.l D2,D3,D4, [A7]+
00000464 4E75 rts
00000466 225F movea.l A1, [A7]+
00000468 201F move.l D0, [A7]+
0000046A A04C syscall CompactMem
0000046C 2E80 move.l [A7], D0
0000046E 4E71 nop
00000470 7000 moveq.l D0, 0x00
label00000472:
00000472 2F09 move.l -[A7], A1
label00000474:
00000474 31C0 0220 move.w [0x00000220 /* MemErr */], D0
00000478 4E75 rts
0000047A 7000 moveq.l D0, 0x00
0000047C 60F6 bra -0x8 /* 00000474 */
fn0000047E:
0000047E 225F movea.l A1, [A7]+
00000480 205F movea.l A0, [A7]+
00000482 A029 syscall HLock
00000484 4EFA FFEC jmp [PC - 0x14 /* 00000472 */]
fn00000488:
00000488 225F movea.l A1, [A7]+
0000048A 205F movea.l A0, [A7]+
0000048C A02A syscall HUnlock
0000048E 4EFA FFE2 jmp [PC - 0x1E /* 00000472 */]